Ext.define('Admin.view.user.manager.UserManagerWatchForm', {
    extend: 'Ext.form.Panel',
    alias: 'widget.userManagerWatchForm',
    xtype: 'userManagerWatchForm',

    requires: [
        'Ext.form.field.Text',
        'Ext.form.field.File',
        'Ext.form.field.Date',
        'Ext.form.field.Radio',
        'Ext.button.Button'
    ],

    controller: 'userManagerViewController',

    defaultType: 'textfield',

    fieldDefaults: {
        editable: false
    },

    layout: {
        type: 'vbox',
        align: 'stretch'
    },

    items: [{
            fieldLabel: '姓名',
            name: 'fullname'
        },
        {
            xtype: 'numberfield',
            name: 'age',
            fieldLabel: '年龄',
            hideTrigger: true,
            minValue: 18,
        },
        {
            xtype: 'fieldcontainer',
            fieldLabel: '性别',
            defaultType: 'radiofield',
            defaults: {
                flex: 1
            },
            items: [{
                boxLabel: '男',
                name: 'sex',
                inputValue: 'male'
            }, {
                boxLabel: '女',
                name: 'sex',
                inputValue: 'female'
            }]
        }, {
            fieldLabel: '联系电话',
            name: 'phone'
        },
        {
            fieldLabel: '电子邮箱',
            name: 'email',
            vtype: 'email'
        },
        {
            fieldLabel: '出生日期',
            name: 'birthday',
            xtype: 'datefield',
            format: 'Y/m/d'
        }, {
            fieldLabel: '部门',
            name: 'dept'
        },
        {
            fieldLabel: '职位',
            name: 'job'
        },
        {
            fieldLabel: '入职日期',
            name: 'enterTime',
            xtype: 'datefield',
            format: 'Y/m/d'
        },
        {
            fieldLabel: '居住地址',
            name: 'address'
        }
    ]

});